home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / BOOTSEC.ZIP / README.TXT < prev    next >
Text File  |  1993-07-08  |  2KB  |  42 lines

  1. BOOTSEC.EXE  - Reads and displays the boot sector of a drive
  2. ------------------------------------------------------------
  3.  
  4. BOOTSEC.EXE version 1.0 (first version) requires Windows 3.1 to run and
  5. the Windows 3.1 SDK to compile and build.
  6.  
  7. DESCRIPTION:
  8. ------------    
  9.  
  10. BOOTSEC demonstrates how to use INT 25 (absolute disk read) to read 
  11. the boot sector (the first sector on head 0, cylinder 0) off of a
  12. drive (either floppy drive or hard disk).
  13.  
  14. NOTE:  The information contained in the boot sector was changed 
  15.        in MS-DOS 5.0.  If this program is run on a disk that was
  16.        formatted with a previous version of MS-DOS, then some of
  17.        the fields in the structure will not be filled out, and 
  18.        the program may display garbage.  The elements of the structure
  19.        that were not changed will be displayed correctly.
  20.         
  21.  
  22. BOOTSEC will check to see if the drive is one of the following:
  23.  
  24. drive            detection method
  25. -----            ----------------
  26. CD-ROM           INT 2F calls to MSCDEX
  27. Net drive        Windows API WNetGetConnection()
  28. RAM drive        checks the boot sector to see if there is only 1 FAT
  29. Floppy Disk      Windows API GetDriveType()
  30. Hard Disk        Windows API GetDriveType()
  31.  
  32. BOOTSEC also shows how to implement a dialog box as a main window using
  33. a private dialog class.
  34.  
  35. DESCRIPTION OF FILES:
  36. ---------------------
  37.  
  38. BOOTSEC.C        - this file contains all of the code for the sample
  39. BOOTSEC.H        - this file contains the structure declarations for
  40.                    the BOOTSECTOR and the DISKIO structures
  41.  
  42.